package org.six.background.config;

import org.springframework.boot.context.properties.ConfigurationProperties;


//@ConfigurationProperties 读取配置文件中cors前缀的内容，封装到对应名属性
@ConfigurationProperties(prefix = "cors")
public class CrossProperty {
    private String credentials="true";
    private String origin="*";
    private String maxAge="3600";
    private String methods="*";
    public String getCredentials() {
        return credentials;
    }
    public void setCredentials(String credentials) {
        this.credentials = credentials;
    }
    public String getOrigin() {
        return origin;
    }
    public void setOrigin(String origin) {
        this.origin = origin;
    }
    public String getMaxAge() {
        return maxAge;
    }
    public void setMaxAge(String maxAge) {
        this.maxAge = maxAge;
    }
    public String getMethods() {
        return methods;
    }
    public void setMethods(String methods) {
        this.methods = methods;
    }
}
